@layout("/backend/common/_container.html"){
<div class="inner-fit">
    <div class="hisui-layout" data-options="fit:true">
        <div data-options="region:'west',title:'组织机构',split:true" style="width:220px;">
            <div class="dhcc-hisui-toolbar">
                <div class="dhcc-hisui-toolbar-seach">
                    <input type="text" id="seachKey" value="" class="textbox" />
                </div>
                <div class="dhcc-hisui-toolbar-btn">
                    <a onclick="javascript:MgrUser.ztree.getObject().expandAll(true)" class="hisui-linkbutton" style="width:48.5%" iconCls="icon-arrow-bottom" plain="true">展开</a>
                    <a onclick="javascript:MgrUser.ztree.getObject().expandAll(false)" class="hisui-linkbutton" style="width:48.5%" iconCls="icon-arrow-top" plain="true">折叠</a>
                </div>
            </div>
            <ul id="deptTree" class="ztree"></ul>
        </div>
        <div data-options="region:'center',title:'用户列表',split:true"  style="overflow-x: hidden;padding:10px">
            <div class="dhcc-con dhcc-con-boder">
                <div class="dhcc-con-left">
                    <form method='post' id="downForm" name="downForm" action="${backendPath}/user/export">
                        <#Hidden id="deptid"/>
                        <#InputCon id="userName" style="width:50%;" name="用户名称" placeholder="登录名/姓名/工号"/>
                        <#DateCon id="beginTime" style="width:50%;" name="注册开始日期" isTime="false" pattern="YYYY-MM-DD"/>
                        <#DateCon id="endTime" style="width:50%;" name="注册结束日期" isTime="false" pattern="YYYY-MM-DD"/>
                    </form>
                </div>
                <div class="dhcc-con-right">
                    <#Button name="查询" icon="fa fa-search" clickFun="MgrUser.search()"/>
                    @//<#Button name="重置" icon="fa fa-trash" clickFun="MgrUser.resetSearch()" space="true"/>
                </div>
            </div>
            <div class="hidden-xs" id="managerTableToolbar" role="group">
                @if(shiro.hasPermission("user:add")){
                <#Button name="新增" btnCss="l-bt-green" icon="fa fa-plus" clickFun="MgrUser.openAddMgr()"/>
                @}
                @/*
                @if(shiro.hasPermission("user:update")){
                <#Button name="修改" icon="fa fa-edit" clickFun="MgrUser.openChangeUser()" space="true"/>
                @}
                @if(shiro.hasPermission("user:delete")){
                <#Button name="删除" btnCss="l-bt-red" icon="fa fa-remove" clickFun="MgrUser.delMgrUser()" space="true"/>
                @}
                @if(shiro.hasPermission("user:reset")){
                <#Button name="重置密码" icon="fa fa-refresh" clickFun="MgrUser.resetPwd()" space="true"/>
                @}
                @if(shiro.hasPermission("user:freeze")){
                <#Button name="冻结" icon="fa fa-warning" clickFun="MgrUser.freezeAccount()" space="true"/>
                @}
                @if(shiro.hasPermission("user:unfreeze")){
                <#Button name="解除冻结" btnCss="l-bt-green" icon="fa fa-check-circle" clickFun="MgrUser.unfreeze()" space="true"/>
                @}
                @*/
                <#Button name="导出用户" icon="fa fa-cloud-download" clickFun="MgrUser.expUsers()" space="true"/>
                <#Button name="导入用户" btnCss="l-bt-red" icon="fa fa-cloud-upload" clickFun="MgrUser.impUsers()" space="true"/>
                <#Button name="下载模板" btnCss="l-bt-green" icon="fa fa-download" clickFun="MgrUser.template()" space="true"/>
            </div>
            <#Table id="managerTable"/>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/backend/system/user/user.js"></script>
@}
